<%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" errorPage="." %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>浙江孵化器在线后台管理系统---报表管理---主产品经济指标完成状况表管理</title>
    <link href="<spring:url value="/static/style/index.css" htmlEscape="true" />" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<spring:url value="/static/js/jquery.js" htmlEscape="true" />"></script>
</head>
<body>
<div class="list_right_title">
    <span><img src="<spring:url value="/static/images/im.jpg" htmlEscape="true" />" alt="用户管理"></span>报表管理>主产品经济指标完成状况表管理
</div>
<div class="fhq_add">
    <%@ include file="/WEB-INF/jsp/management/common/operationResultHint.jsp" %>
    <div class="fhq_add_in">
        <div class="fhq_add_form">
            <form:form modelAttribute="keyEconomyPropFinishStatus" method="post" action="saveManageKeyEconomyPropFinishStatus" >
            <form:hidden path="id"/>
            <table class="fhq_add_table" cellpadding="0" cellspacing="" summary="报表管理>主产品经济指标完成状况表管理">
                <tr>
                    <th width="20%">时间选择：</th>
                    <td width="80%">
                        <select name="countYear">
                                <c:forEach begin="2010" end="2066" var="n">
                                    <option value="${n}" <c:if test="${keyEconomyPropFinishStatus.countYear eq n}"> selected="selected"</c:if>>${n}</option>
                                </c:forEach>
                            </select>:年
                            <select name="countQuarter">
                                <c:forEach begin="1" end="4" var="n">
                                    <option value="${n}" <c:if test="${keyEconomyPropFinishStatus.countQuarter eq n}"> selected="selected"</c:if>>${n}</option>
                                </c:forEach>
                         </select>:季度
                    </td>
                </tr>
                 <tr>
                    <th width="20%">企业选择：</th>
                    <td width="80%">
                        <form:select path="enterprise.id" items="${enterpriseList}" itemValue="id" itemLabel="name"  cssClass="fhq_add_select" onchange="showProductsStatus(this)"/>
                    </td>
                </tr>
                 <tr>
                    <th width="20%">产品选择：</th>
                    <td width="80%">
                        <br/>
                        <div id="showProductOutput">

                        </div>
                        <%--<form:select path="enterpriseCategoryProduct.id" items="${productMap}" cssClass="fhq_add_select"/>--%>
                    </td>
                </tr>
<%--                 <tr>
                    <th>产量（本期）：</th>
                    <td>
                        <form:input path="output"/>
                    </td>
                </tr>--%>
                 <tr>
                    <th>销售产值（本期）：</th>
                    <td>
                        <form:input path="saleMoney"/>
                    </td>
                </tr>
                 <tr>
                    <th>产量（去年同期）：</th>
                    <td>
                        <form:input path="lastYearSaleMoney"/>
                    </td>
                </tr>
                 <tr>
                    <th>产量同比增幅%：</th>
                    <td>
                        <form:input path="saleMoneyAnnualBasisAmplification"/>
                    </td>
                </tr>
                 <tr>
                    <th>利润（本期）：</th>
                    <td>
                        <form:input path="profit"/>
                    </td>
                </tr>
                 <tr>
                    <th>利润（去年同期）：</th>
                    <td>
                        <form:input path="lastYearProfit"/>
                    </td>
                </tr>
                 <tr>
                    <th>利润同比增幅%：</th>
                    <td>
                        <form:input path="profitAnnualBasisAmplification"/>
                    </td>
                </tr>
                 <tr>
                    <th>利税（本期）</th>
                    <td>
                        <form:input path="tax"/>
                    </td>
                </tr>
                 <tr>
                    <th>利税（去年同期）：</th>
                    <td>
                        <form:input path="lastYearTax"/>
                    </td>
                </tr>
                <tr>
                    <th>利税同比增幅%：</th>
                    <td>
                        <form:input path="taxAnnualBasisAmplification"/>
                    </td>
                </tr>
                 <tr>
                    <th>出口额（万美元本期）</th>
                    <td>
                        <form:input path="exportRate"/>
                    </td>
                </tr>
                 <tr>
                    <th>出口额（去年同期）：</th>
                    <td>
                        <form:input path="lastYearExportRate"/>
                    </td>
                </tr>
                <tr>
                    <th>出口额同比增幅%：</th>
                    <td>
                        <form:input path="exportRateAnnualBasisAmplification"/>
                    </td>
                </tr>
                <tr>
                    <th nowrap="nowrap">主要出口地区/国家，占出口总额的比重：</th>
                    <td>
                        <form:input path="keyExportAmountRate"/>
                    </td>
                </tr>
                <tr>
                    <th>&nbsp;</th>
                    <td style="padding-top:20px;">
                        <input type="submit" value=" 保存 "/>　　　<input type="button" value=" 返回 " onclick="window.location.href='listKeyEconomyPropFinishStatuses'"/>
                    </td>
                </tr>
            </table>
            </form:form>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
   var enterpriseID = document.getElementById("enterprise.id").value;
  if(enterpriseID !=null && enterpriseID!="")
    {
        $(document).ready(function() {
            jQuery.get("ajaxGetProductOutput", {enterpriseID:enterpriseID,ownerID:$("#id").val()},
                    function (data, textStatus) {
                        eval(data);
                    });
        });
    }

    function showProductsStatus(enterpriseObj)
    {
            jQuery.get("ajaxGetProductOutput", {enterpriseID:enterpriseObj.value,ownerID:$("#id").val()},
                    function (data, textStatus) {
                        eval(data);
                    });
    }

</script>
</html>
